Repository navigation
test: kill escaped mutants - #55
Merged
Merged
Conversation
…schema behaviors Render repeats what compute does, so the full compile hid compute mutants; a compile stopped after GenerateModifiers shows them. Listener arguments, column nullability, the version rule taken from the column type and fields added without a column name were not asserted at all. Assisted-By: Claude Opus 5.5 <[email protected]>
The new manual-version test uses a schema with that lock alone: once one OptimisticLock listener wraps the update command, the following ones see a command without a scope and skip it. Assisted-By: Claude Opus 5.5 <[email protected]>
Assisted-By: Claude Opus 5.5 <[email protected]>
Two OptimisticLock listener mutants are ignored as equivalent: the version comparison only checks for inequality, so swapping the spaceship operands changes nothing, and the increment rule always receives an integer from the typecast column. Assisted-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was changed
GenerateModifiersto check whatcompute()does on its own.ListenerProvider(attribute andgetEventsList()listeners together,QueueCommandon delete, invalid definitions, malformed event lists),Dispatcherpropagation stop,withRole()immutability,RegistryModifiercolumn-name and default-typecast-handler checks.composer infect:ci).Why?
Raise the mutation score: Linux MSI 78% → 99% (escaped 49 → 2).
Review notes
infection.jsonas equivalent:SpaceshipinListener\OptimisticLock::lock()(the result is only compared with!== 0) andCastIntinListener\OptimisticLock::getLockingValue()(the increment rule only gets integers from an integer, typecast column).assert()inListenerProvider::resolveListeners()(an invalid definition fails either way, only the error type changes, and only with assertions on), and$event->state->setStatus(Node::SCHEDULED_DELETE)inListener\SoftDelete. That line is dead with the current ORM: with or without it, a soft-deleted entity stays in the heap asMANAGED, although the comment says it should be removed.WrappedStoreCommand, which is not aScopeCarrierInterface, so the following locks skip the update. The attribute is not repeatable, but a hand-written schema can list several; the new manual-version test uses a schema with that lock alone.Checklist